import request from '@/utils/request'

export const getchoiceListApi=(params)=>request({
    url:'/questions/choice',
    params
})

export const getshangjiaApi=(id,publishState)=>request({
    url:`/questions/choice/${id}/${publishState}`
})

// 上架
export const shangjiaApi=(id)=>request({
    url:`/questions/choice/${id}/1`,
    method:'post'
})

// 下架
export const xiajiaApi=(id)=>request({
    url:`/questions/choice/${id}/0`,
    method:'post'
})

// 审核
export const shenheApi=(data)=>request({
    url:'/questions/check/'+data.id,
    method:'post',
    data
})